package com.tutu.xml.entity;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Program: Spring_New
 * @Description: 基于xml引用类型的注入
 * @Author: JK.TuTu
 * @Create: 2022-09-13 22:05
 **/
public class Student {
    private int id;

    private String name;

    private School school;

    private String[] subject;

    private List<String> likes;

    private Set<String> games;

    private Map<String,Integer> score;

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSchool(School school) {
        this.school = school;
    }

    public void setSubject(String[] subject) {
        this.subject = subject;
    }

    public void setLikes(List<String> likes) {
        this.likes = likes;
    }

    public void setGames(Set<String> games) {
        this.games = games;
    }

    public void setScore(Map<String, Integer> score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "StudentPlus{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", school=" + school +
                ", subject=" + Arrays.toString(subject) +
                ", likes=" + likes +
                ", games=" + games +
                ", score=" + score +
                '}';
    }
}
